﻿@model eShop.Web.Admin.Models.StockModel

@section header{
    <title>仓库列表</title>
    <link type="text/css" rel="stylesheet" href="/administration/css/site.css" />
    <link type="text/css" rel="stylesheet" href="/administration/css/style.css" />
    <script type="text/javascript" src="/administration/scripts/jquery.js"></script>
    <script type="text/javascript" src="/administration/scripts/showlist.js"></script>
    <script type="text/javascript">
        $(function () {
            $('.tablelist tbody tr:odd').addClass('odd');
        });
    </script>
}
@section body{
    <h1 class="rightH1">
        仓库管理 &gt;&gt; 仓库列表
        <div class="right">
            <a href="@Url.Action("add")" class="menuBT"><img src="/administration/images/add.jpg" />添加</a>
            <div class="clear"></div>
        </div>
        <div class="clear"></div>
    </h1>
    @using (Html.BeginForm("list", "Stock"))
    {
        <div class="dataListSearch">
            <table height="32">
                <tbody>
                    <tr>
                        <td width="35"><img id="searchImg" src="/administration/images/search1.gif" /></td>
                        <td>
                            名称：
                        </td>
                        <td width="130">
                            @Html.TextBox("StockBh", Model.StockBh, new { height = "18" })
                        </td>
                        <td>
                            <input id="SearchUser" name="SearchUser" type="image" class="searchBut submit" src="/administration/images/s.jpg" />
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div style="padding-left:15px;">
            <table class="tablelist">
                <thead>
                    <tr>
                        <th align="left">编号</th>
                        <th align="left">名称</th>
                        <th align="left">管理操作</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (DataRow row in Model.StockList.Rows)
                    {
                        <tr>
                            <td>@row["stockbh"]</td>
                            <td>@row["stockmc"]</td>
                            <td>
                                @Html.ActionLink("[编辑]", "edit", new { wid = row["stockid"] }, new { @class = "editOperate" })
                                @Html.ActionLink("[删除]", "del", new { wid = row["stockid"] }, new { @class = "deleteOperate" })
                            </td>
                        </tr>
                    }
                </tbody>
            </table>
        </div>
    }
}